from django import forms


# TODO: 留言板Form
class MessageBoardForm(forms.Form):
    title = forms.CharField(min_length=2, max_length=100, label='标题',
                            error_messages={'min_length': '标题字段最少2个字符'})
    content = forms.CharField(widget=forms.Textarea, label='内容')
    email = forms.EmailField(label='邮箱', error_messages={'invalid': '邮箱输入非法'})
    reply = forms.BooleanField(required=False, label='回复')
